package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("商品类别创建参数")
public class ProductTypeCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父类型")
    private Long pId;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "类别名称")
    private String name;
}
